import * as types from './actionTypes';



const openWebWithScreen = ()=>{
        var ticket = global.Ticket ;
        return (dispatch, getStore) => {

                 fetch('http://42.159.143.101/userdevice/v1/users/devices/publish?device=test1&topic=/control/brower/open',{
                       method:'POST',
                       headers: {
                        'Content-Type': 'application/json',
                        'appkey':'111111',
                         'userid':'bbo268@gmail.com',
                         'token':ticket
                      },
                      body: "www.baidu.com"
                     }
               ).then(ret=>{
                  return ret.json();
               }).then(res=>{

               }).catch(err=>{
                 
               })

        }





}

const closeScreen=  ()=>{

      return (dispatch, getStore) => {




      }

}

export default {
     openWebWithScreen,
     closeScreen

}
